package com.winit.config.manager;

import com.winit.config.model.Config;
import com.winit.config.repository.ConfigOperations;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.UUID;

/**
 * Created by wangjian on 2017/9/28.
 */
@Component
public class ServerConfigManager {

    private static Logger logger = LoggerFactory.getLogger(ServerConfigManager.class);

    @Autowired
    ConfigOperations operations;

    public List<Config> getServerList(UUID id, String envTag, String zoneTag, String resourceTag) {
        List<Config> list = operations.getServerConfig(id, envTag, zoneTag, resourceTag);
        return list;
    }

}
